﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CollectibleItem : MonoBehaviour
{

    [SerializeField] private string itemName;

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}

    void OnTriggerEnter(Collider other)
    {
//        Debug.Log("Item collected:"+itemName);
        Manager.Inventory.AddItem(name);
        Destroy(this.gameObject);
    }
}
